function plot_domain_point(d,type)
% this function is to plot the different dof sort scheme
if nargin == 0
    d = 3;
    type = 1;
end
if type==1
    ch = 'c_{';
else
    ch = '\xi_{';
end
v1 = [1,1.5];
v2 = [0,0];
v3 = [2,0];
T = [1,2,3];
V = [v1;v2;v3];
figure('Position',[100,100,350,300]);
m = (d+1)*(d+2)/2;
str = num2str((1:m)');
[I,J,K] = indices(d);
X = (I*v1(1)+J*v2(1)+K*v3(1))/d;
Y = (I*v1(2)+J*v2(2)+K*v3(2))/d;
plot_t(V,T);hold on;
plot((I*v1(1)+J*v2(1)+K*v3(1))/d,(I*v1(2)+J*v2(2)+K*v3(2))/d,'r.');
text(v1(1)-0.1,v1(2)+0.15,'v_1','Color','red','FontSize',15);
text(v2(1)-0.15,v2(2)-0.2,'v_2','Color','red','FontSize',15);
text(v3(1),v3(2)-0.2,'v_3','Color','red','FontSize',15);
for i = 1:length(X)    
    text(X(i)-0.18,Y(i),strcat(ch,sprintf('%d,%d,%d}',I(i),J(i),K(i))),'FontSize',18); 
end
axis tight; axis off;hold off;